home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / src / s / sol2.h < prev    next >
C/C++ Source or Header  |  1994-10-05  |  2KB  |  50 lines

  1. #include "usg5-4.h"
  2.  
  3. #define SOLARIS2
  4.  
  5. /* eggert@twinsun.com said these work in Solaris.
  6.    Perhaps they work in all kinds of SVR4, but this is more conservative.  */
  7. #undef BROKEN_TIOCGETC
  8. #undef BROKEN_TIOCGWINSZ
  9.  
  10. /* This triggers a conditional in xfaces.c.  */
  11. #define XOS_NEEDS_TIME_H
  12.  
  13. #define POSIX
  14.  
  15. /* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
  16.    says where to find X windows at run time.  */
  17. #ifndef __GNUC__
  18. #define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX
  19. #else /* GCC */
  20. /* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX
  21.    has anything in it.  It can be empty.
  22.    This works ok in src.  Luckily lib-src does not use LD_SWITCH_SYSTEM.  */
  23. #define LD_SWITCH_SYSTEM `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX`
  24. #endif /* GCC */
  25.  
  26. /* Compile in non-ansi fashion to work around bugs in system header files.  */
  27. #ifndef __GNUC__
  28. #define C_SWITCH_SYSTEM -Xs
  29. #else /* GCC */
  30. #define C_SWITCH_SYSTEM -traditional
  31. #endif /* GCC */
  32. #define const
  33.  
  34. /* Karl Berry writes:
  35. If you have the misfortune to be running Solaris 2.1, you may have
  36. noticed that the access system call does not check the readonlyness of
  37. the filesystem the path refers to.  This is a bug, according to
  38. access(2), but in the meantime, some of us need the right behavior.  */
  39.  
  40. /* Well, we released Emacs with this change, and fixed a typo, but
  41.    people keep saying that it doesn't work, and that the patch is easy
  42.    to install.  Patch number is 100947-02.  */
  43. #undef SOLARIS_BROKEN_ACCESS
  44.  
  45. /* We can't use libX11 from X11R6 with ralloc.c, because libX11
  46.    includes libthread.so and that calls sbrk directly.  */
  47. #if defined (HAVE_X11) && defined (HAVE_X11R6)
  48. #undef REL_ALLOC
  49. #endif
  50.